package com.example.human_resource_management.controller;

import com.example.human_resource_management.common.ResponseData;
import com.example.human_resource_management.entry.po.Filein;
import com.example.human_resource_management.entry.po.Training;
import com.example.human_resource_management.service.FileinService;
import io.minio.MinioClient;
import io.minio.RemoveObjectArgs;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/file")
public class FileController {

    @Resource
    private FileinService fileinService;

    //查看所有文件
    @GetMapping("wenjian")
    public ResponseData<List<Filein>> getFileList() {
        List<Filein> fileinList = fileinService.selectFileList();
        return ResponseData.ok(fileinList);
    }



}
